home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / environment_effects_scripts / environment_waterfalldust2.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  3.6 KB  |  140 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_ENVIRONMENT_WATERFALLDUST2)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 1
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24. PT = Emitter.ParticleTypesParams[1]
  25. PT.IsEmitterLocked = false
  26. PT.DrawOrder = 1
  27. PT.Material = ENMAT_SIMPLEPARTICLE
  28.  
  29.  
  30. PT.TextureName = "environment_effect_waterfall.dds"
  31.  
  32. PT.ParticlesPerSecond = 13.0;
  33. PT.InitialNumberOfParticles = 0.0;
  34. PT.BaseLifeTime = 2.3;
  35. PT.BaseLifeTimeVariance = 0.0;
  36. PT.BaseSpeed = 0.0;
  37. PT.BaseSpeedVariance = 0.0;
  38.  
  39. PT.TangentSpeed = 1.0;
  40. PT.TangentSpeedVariance = 0.0;
  41. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  42. PT.TangentDirection = vzbzd4
  43. vzbzd4:delete()
  44. PT.TangentAngleMin = 0.0;
  45. PT.TangentAngleMax = 6.28;
  46. PT.IsTangentDependOnBase = false;
  47.  
  48. PT.BaseAngle = 3.0;
  49. PT.BaseAngleVariance = 5.0;
  50. PT.BaseAngleSpeed = 0.5;
  51. PT.BaseAngleSpeedVariance = 2.0;
  52. PT.BaseAngleSpeedDirection = 0;
  53. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,0.0)
  54. PT.BaseDirection = vzbzd5
  55. vzbzd5:delete()
  56. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  57. PT.BaseDirectionVariance = vzbzd6
  58. vzbzd6:delete()
  59. local vzbzd7 = D3DXVECTOR3:new(0,1,0)
  60. PT.BasePosition = vzbzd7
  61. vzbzd7:delete()
  62. local vzbzd8 = D3DXVECTOR3:new(10,0,10)
  63. PT.BasePositionVariance = vzbzd8
  64. vzbzd8:delete()
  65. PT.BaseSize = 3.0;
  66. PT.BaseSizeVariance = 0.1;
  67.  
  68. -- color over time
  69. PT.ColorOverTimeR[1].TimePercent = 0.0;
  70. PT.ColorOverTimeR[1].Value = 0.5;
  71. PT.ColorOverTimeG[1].TimePercent = 0.0;
  72. PT.ColorOverTimeG[1].Value = 0.5;
  73. PT.ColorOverTimeB[1].TimePercent = 0.0;
  74. PT.ColorOverTimeB[1].Value = 0.5;
  75.  
  76. PT.ColorOverTimeR[2].TimePercent = 1.0;
  77. PT.ColorOverTimeR[2].Value = 0.5;
  78. PT.ColorOverTimeG[2].TimePercent = 1.0;
  79. PT.ColorOverTimeG[2].Value = 0.5;
  80. PT.ColorOverTimeB[2].TimePercent = 1.0;
  81. PT.ColorOverTimeB[2].Value = 0.5;
  82.  
  83. -- transparency over time
  84. PT.TransparencyOverTime[1].TimePercent = 0.0;
  85. PT.TransparencyOverTime[1].Value = 0.0;
  86.  
  87. PT.TransparencyOverTime[2].TimePercent = 0.4;
  88. PT.TransparencyOverTime[2].Value = 0.5;
  89.  
  90. PT.TransparencyOverTime[3].TimePercent = 1.0;
  91. PT.TransparencyOverTime[3].Value = 0.0;
  92.  
  93. -- size over time
  94. PT.SizeOverTime[1].TimePercent = 0.0;
  95. PT.SizeOverTime[1].Value = 1.0;
  96.  
  97. PT.SizeOverTime[2].TimePercent = 1.0;
  98. PT.SizeOverTime[2].Value = 10.0;
  99.  
  100. -- Speed over time
  101. PT.SpeedOverTime[1].TimePercent = 0.0;
  102. PT.SpeedOverTime[1].Value = 0.0;
  103.  
  104. PT.SpeedOverTime[2].TimePercent = 1.0;
  105. PT.SpeedOverTime[2].Value = 0.0;
  106.  
  107. -- Tangent Speed over time
  108. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  109. PT.TangentSpeedOverTime[1].Value = 12.0;
  110.  
  111. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  112. PT.TangentSpeedOverTime[2].Value = 12.0;
  113.  
  114.  
  115. -- GravityAcceleration over time
  116. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  117. PT.GravityAccelerationOverTime[1].Value = 0.0;
  118.  
  119. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  120. PT.GravityAccelerationOverTime[2].Value = 0.0;
  121.  
  122. -- AngleSpeed over time
  123. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  124. PT.AngleSpeedOverTime[1].Value = 0.5;
  125.  
  126. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  127. PT.AngleSpeedOverTime[2].Value = 1.0;
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137. --
  138. -- end particle system description
  139. --
  140.